#include "StdAfx.h"
#include "StaffDayKPIModel.h"


StaffDayKPIModel::StaffDayKPIModel(void)
{
	m_id = 0;
	m_userID = 0;
	m_curDay = 0;
	m_addPurpose = 0;
	m_callSum = 0;
	m_holdSum = 0;
	m_gtOneSecond = 0;
	m_holdSumTime = 0;
	m_meetNum = 0;
	m_signedNum = 0;
	m_extendLoanNum = 0;
}

StaffDayKPIModel::~StaffDayKPIModel(void)
{
}

void StaffDayKPIModel::parseFromJson(Json::Value& jsonData)
{
	if (!jsonData["ID"].isNull())
	{
		this->m_id = jsonData["ID"].asInt();
	}
	if (!jsonData["userID"].isNull())
	{
		this->m_userID = jsonData["userID"].asInt();
	}
	if (!jsonData["curDay"].isNull())
	{
		this->m_curDay = jsonData["curDay"].asInt64();
	}
	if (!jsonData["addPurpose"].isNull())
	{
		this->m_addPurpose = jsonData["addPurpose"].asInt();
	}
	if (!jsonData["callSum"].isNull())
	{
		this->m_callSum = jsonData["callSum"].asInt();
	}
	if (!jsonData["holdSum"].isNull())
	{
		this->m_holdSum = jsonData["holdSum"].asInt();
	}
	if (!jsonData["gtOneSecond"].isNull())
	{
		this->m_gtOneSecond = jsonData["gtOneSecond"].asInt();
	}
	if (!jsonData["holdSumTime"].isNull())
	{
		this->m_holdSumTime = jsonData["holdSumTime"].asInt();
	}
	if (!jsonData["meetNum"].isNull())
	{
		this->m_meetNum = jsonData["meetNum"].asInt();
	}
	if (!jsonData["signedNum"].isNull())
	{
		this->m_signedNum = jsonData["signedNum"].asInt();
	}
	if (!jsonData["extendLoanNum"].isNull())
	{
		this->m_extendLoanNum = jsonData["extendLoanNum"].asInt();
	}
	if (!jsonData["followupNum"].isNull())
	{
		this->m_followupNum = jsonData["followupNum"].asInt();
	}
	if (!jsonData["signedConsumerIDs"].isNull())
	{
		this->m_signedConsumerIDs = jsonData["signedConsumerIDs"].asCString();
	}
	if (!jsonData["extendLoanConsumerIDs"].isNull())
	{
		this->m_extendLoanConsumerIDs = jsonData["extendLoanConsumerIDs"].asCString();
	}
	
}
